Пример #1
0
        public int Create(PictureDTO item)
        {
            Mapper.CreateMap<PictureDTO, Picture>();

            int result = Database.Pictures.Create(Mapper.Map<PictureDTO, Picture>(item)).Id;
            Database.Save();
            return result;
        }
Пример #2
0
 public void Update(PictureDTO item)
 {
 }