public async Task <JsonResult> Delete(ClimateEntityModel climate) { return(new JsonResult(await _climateLogic.Delete(climate.Id))); }
public async Task <JsonResult> Update(ClimateEntityModel climate) { return(new JsonResult(await _climateLogic.Update(new Climate(climate.Id, climate.Name)))); }
public async Task <JsonResult> Create(ClimateEntityModel climate) { return(new JsonResult(await _climateLogic.Add(new Climate(0, climate.Name)))); }