public void Delete(List <long> idList) { List <Data.Entity.UserGroupStatus> entity = new List <Data.Entity.UserGroupStatus>(); foreach (var id in idList) { entity.Add(UserGroupStatusDao.Find(id)); } foreach (var id in idList) { UserGroupStatusDao.Delete(id); } }
public Data.Entity.UserGroup Convert(UserGroupParam param, Data.Entity.UserGroup oldentity) { Data.Entity.UserGroup entity = null; if (oldentity != null) { entity = oldentity; } else { entity = new Data.Entity.UserGroup { Code = param.Code, Id = param.Id, Description = param.Description, Name = param.Name }; } entity.UserGroupStatus = UserGroupStatusDao.Find(param.UserGroupStatusId); return(entity); }