public bool Delete([FromRoute] string partyName) { partyService .DeleteParty(partyName); return(true); }
public IActionResult DeleteParty(long id) { try { _partyService.DeleteParty(id); }catch (Exception e) { return(StatusCode(StatusCodes.Status500InternalServerError)); } return(StatusCode(StatusCodes.Status200OK)); }
public IActionResult Delete(int id) { Party party = _partyService.GetPartyByID(id); if (party == null) { return(NotFound()); } _partyService.DeleteParty(party); return(Ok(id)); }
public JsonResult UpdatePartyStatus(PartyTypeModel partymodel) { var result = partyService.DeleteParty(partymodel); return(Json(result, JsonRequestBehavior.AllowGet)); }