protected override void PersistUpdatedItem(IUserType entity) { var userTypeFactory = new UserTypeFactory(); var userTypeDto = userTypeFactory.BuildDto(entity); Database.Update(userTypeDto); }
protected override void PersistNewItem(IUserType entity) { var userTypeFactory = new UserTypeFactory(); var userTypeDto = userTypeFactory.BuildDto(entity); var id = Convert.ToInt32(Database.Insert(userTypeDto)); entity.Id = id; }