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