public async Task <IActionResult> Delete()
        {
            var queries = HttpContext.Request.Query;
            var res     = await _plantService.Delete(queries).ConfigureAwait(false);

            return(Ok(res));
        }
Exemple #2
0
 public bool Delete(int id)
 {
     return(_plantService.Delete(id));
 }
Exemple #3
0
 // DELETE: api/Plant/5
 public IHttpActionResult Delete(int id)
 {
     PlantService.Delete(id);
     return(Ok());
 }