public async Task <ActionResult <Picture> > PostPicture(Picture picture) { _IPicture.Add(picture); await _IPicture.SaveAsync(); return(CreatedAtAction("GetPicture", new { id = picture.PictureId }, picture)); }
public void Add(bool addAll = false, ProgressReporter pg = null) { _picture.Add(addAll, pg); }