public int Create(PictureDTO item) { Mapper.CreateMap<PictureDTO, Picture>(); int result = Database.Pictures.Create(Mapper.Map<PictureDTO, Picture>(item)).Id; Database.Save(); return result; }
public void Update(PictureDTO item) { }