public bool Update(NASEBRole entity) { unitOfWork.Roles.Update(entity); return(unitOfWork.SaveChnages() > 0); }
public async Task <bool> UpdateAsync(NASEBRole entity) { unitOfWork.Roles.Update(entity); return(await unitOfWork.SaveChangesAsync() > 0); }
public bool Add(NASEBRole entity) { unitOfWork.Roles.Add(entity); return(unitOfWork.SaveChnages() > 0); }