public void SaveUserRole(IEnumerable <UserRole> model, int userId) { _roledal.DeleteUserRole(userId); if (model != null && model.Count() > 0) { _dal.Insert(model); } }
public void SaveUserRole(IEnumerable <UserRole> model, int userId) { _roledal.DeleteUserRole(userId); if (model != null && model.Count() > 0) { _dal.Insert(model); } }