Example #1
0
 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;
 }
Example #2
0
 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;
 }
Example #3
0
        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;
        }
Example #4
0
 public void UpdateList(BllList bllList)
 {
     _listRep.Update(Mapper.ToDalList(bllList));
     _uow.Commit();
 }
Example #5
0
 public void AddList(BllList list)
 {
     _listRep.Add(Mapper.ToDalList(list));
     _uow.Commit();
 }