// PUT: api/PictureApi public PictureDto PutPicture(DomainModelPicture domainModelPicture) { var picture = new Facade().GetPictureRepository().Update(domainModelPicture); return new PictureDtoConverter().Convert(picture); }
// POST api/PictureApi public void PostPicture(DomainModelPicture domainModelPicture) { new Facade().GetPictureRepository().Create(domainModelPicture); }