Example #1
0
 public PlantDataSet Post(PlantDataSet dataSet)
 {
     try
     {
         _context.DataSets.Add(dataSet);
         _context.SaveChanges();
         return(dataSet);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
 public PlantDataSet Post([FromBody] PlantDataSet dataSet)
 {
     return(_dataSetService.Create(dataSet));
 }
Example #3
0
 public PlantDataSet Put([FromBody] PlantDataSet dataSet)
 {
     return(_dataSetService.Update(dataSet));
 }
Example #4
0
 public PlantDataSet Update(PlantDataSet picture)
 {
     return(_dataSetRepository.Put(picture));
 }
Example #5
0
 public PlantDataSet Create(PlantDataSet picture)
 {
     return(_dataSetRepository.Post(picture));
 }