public void UpdateUser(T_S_User f) { using (var uow = GetUnitOfWork()) { uow.Repository <T_S_User>().Update(f); uow.Save(); } }
public void AddUser(T_S_User f) { using (var uow = GetUnitOfWork()) { f.UserId = Guid.NewGuid(); if (string.IsNullOrEmpty(f.Password)) { f.Password = "******"; } uow.Repository <T_S_User>().Insert(f); uow.Save(); } }
public ActionResult UpdateUser(T_S_User item) { BS.UpdateUser(item); return(Json("")); }
public ActionResult AddUser(T_S_User item) { BS.AddUser(item); return(Json("")); }