public bool Update(AccountObject ob) { if (GetAll().Find(q => q.Username.Trim().ToLower() == ob.Username) != null) { return(false); } var db = new eTrainingScheduleEntities(); return(db.sp_tbl_Account_UPDATE(ob.UserId, ob.FullName, ob.PassWord, ob.Username, ob.Email, ob.Phone, ob.Description, ob.Isdeleted, ob.RoleId) > 0); }
public bool Update(AccountObject ob) { var db = new eTrainingScheduleEntities(); return(db.sp_tbl_Account_UPDATE(ob.UserId, ob.FullName, ob.PassWord, ob.Username, ob.Email, ob.Phone, ob.Description, ob.Isdeleted, ob.RoleId) > 0); }