public ActionResult <jsonPhoto> CreateOnePhoto([FromBody] jsonPhoto photo)
 {
     _photoService.CreateOne(photo);
     return(photo);
 }
Example #2
0
 public jsonPhoto CreateOne(jsonPhoto photo)
 {
     photo.tag = null;
     _photo.InsertOne(photo);
     return(photo);
 }