Example #1
0
        public async Task <ActionResult <Picture> > PostPicture(Picture picture)
        {
            _IPicture.Add(picture);
            await _IPicture.SaveAsync();

            return(CreatedAtAction("GetPicture", new { id = picture.PictureId }, picture));
        }
Example #2
0
 public void Add(bool addAll = false, ProgressReporter pg = null)
 {
     _picture.Add(addAll, pg);
 }