public bool Delete([FromRoute] string partyName)
        {
            partyService
            .DeleteParty(partyName);

            return(true);
        }
示例#2
0
        public IActionResult DeleteParty(long id)
        {
            try
            {
                _partyService.DeleteParty(id);
            }catch (Exception e)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError));
            }

            return(StatusCode(StatusCodes.Status200OK));
        }
示例#3
0
        public IActionResult Delete(int id)
        {
            Party party = _partyService.GetPartyByID(id);

            if (party == null)
            {
                return(NotFound());
            }

            _partyService.DeleteParty(party);

            return(Ok(id));
        }
示例#4
0
        public JsonResult UpdatePartyStatus(PartyTypeModel partymodel)
        {
            var result = partyService.DeleteParty(partymodel);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }