public async Task <IHttpActionResult> Delete(int id) { var flag = await computerService.GetById(id); if (flag == null) { return(NotFound()); } try { await computerService.Delete(id); return(Ok()); } catch (Exception e) { return(InternalServerError(e)); } }
public void ComputerDelete(int Id) { computerService.Delete(Id); }