public ActionResult Delete(int id) { bool rpta = rolservice.Delete(id); if (rpta) { return(RedirectToAction("Index")); } return(View()); }
public async Task <IActionResult> DeleteRol([FromRoute] int id) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } await _servicioRol.Delete(id); return(Ok()); }
public async Task <IActionResult> Remove(int id) { try { var firmaid = HttpContext.Session.GetInt32(Metrics.SessionKeys.FirmaId).Value; await _rolService.Delete(id, firmaid); return(Json(true)); } catch (Exception e) { return(Json(false)); } }
public async Task Delete(int id) { await _rolService.Delete(id); }
public IActionResult Delete(int id) { //Guardando en la variable lo que encuentre accediendo al modelo buscando ese id return(Ok(_rolService.Delete(id))); }
public IActionResult Delete(string id) { return(Ok( _RolService.Delete(id) )); }
public ApiResultModel <bool> Delete([FromBody] ROL aux) => GetApiResultModel(() => _rolService.Delete(aux));
public IHttpActionResult Delete(List <string> ids) { return(Ok(_service.Delete(ids))); }