public JsonResult IsUserNameAvailable(string UserName) { return Json(db.Users.Any(u => u.UserName == UserName)); }