internal static ApiList ToApiList(BllList list) { if (list != null) { return new ApiList { Id = list.Id, Description = list.Description, OwnerId = list.OwnerId, Title = list.Title } } ; return(null); }
internal static DalList ToDalList(BllList list) { if (list != null) { return new DalList { Description = list.Description, Id = list.Id, OwnerId = list.OwnerId, Title = list.Title } } ; return(null); }
internal static ListModel ToListModel(BllList model) { if (model != null) { return new ListModel { Id = model.Id, Description = model.Description, Title = model.Title, //не так!это не надо!!! // OwnerId = model.OwnerId, } } ; return(null); }
public void UpdateList(BllList bllList) { _listRep.Update(Mapper.ToDalList(bllList)); _uow.Commit(); }
public void AddList(BllList list) { _listRep.Add(Mapper.ToDalList(list)); _uow.Commit(); }