public ActionResult Create(UserModel user)
 {
     try
     {
         UserManager.AddUser(Utility.convertSrcToTarget<UserModel, User>(user), 1);
         ViewBag.Roles = Helper_Classes.WebHelper.GetSelectListByEnum<CommonTier.Enum.UserRoles>();
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }
 public ActionResult Edit(int id, UserModel user)
 {
     try
     {
         // TODO: Add update logic here
         UserManager.EditUser(Utility.convertSrcToTarget<UserModel, User>(user), 1);
         ViewBag.Roles = Helper_Classes.WebHelper.GetSelectListByEnum<CommonTier.Enum.UserRoles>();
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }
 //
 // GET: /User/Create
 public ActionResult Create()
 {
     UserModel user = new UserModel() { IsActive = true, IsLocked = false, RemainAttempts = 10 };
     ViewBag.Roles = Helper_Classes.WebHelper.GetSelectListByEnum<CommonTier.Enum.UserRoles>();
     return View(user);
 }