public ActionResult DeleteComponent(int clientId) { _clientService.Delete(new Client() { Id = clientId }); return(RedirectToAction("EditClientList")); }
// DELETE: api/WebApiClient/5 public IHttpActionResult Delete(int id) { Client C = CS.GetById(id); CS.Delete(C); CS.Commit(); return(Ok()); }
public void Delete(int ClientId) { _clientService.Delete(ClientId); }