public PlantDataSet Post(PlantDataSet dataSet) { try { _context.DataSets.Add(dataSet); _context.SaveChanges(); return(dataSet); } catch (Exception ex) { throw ex; } }
public PlantDataSet Post([FromBody] PlantDataSet dataSet) { return(_dataSetService.Create(dataSet)); }
public PlantDataSet Put([FromBody] PlantDataSet dataSet) { return(_dataSetService.Update(dataSet)); }
public PlantDataSet Update(PlantDataSet picture) { return(_dataSetRepository.Put(picture)); }
public PlantDataSet Create(PlantDataSet picture) { return(_dataSetRepository.Post(picture)); }