public async Task <IActionResult> Delete() { var queries = HttpContext.Request.Query; var res = await _plantService.Delete(queries).ConfigureAwait(false); return(Ok(res)); }
public bool Delete(int id) { return(_plantService.Delete(id)); }
// DELETE: api/Plant/5 public IHttpActionResult Delete(int id) { PlantService.Delete(id); return(Ok()); }