public ActionResult <BaseResult> DeleteById([FromForm] int ContactId) { var result = new BaseResult("success"); try { _ContactsService.DeleteContactByIdAsync(ContactId); } catch (Exception) { result.ResultMessage = "error"; } return(result); }
public ActionResult <BaseResult> DeleteById([FromForm] int ContactId) { var result = new BaseResult("success"); try { _ContactsService.DeleteContactByIdAsync(ContactId); } catch (Exception) { result.ResultMessage = "error"; } return(result); }