コード例 #1
0
        public ActionResult <BaseResult> DeleteById([FromForm] int ContactId)
        {
            var result = new BaseResult("success");

            try
            {
                _ContactsService.DeleteContactByIdAsync(ContactId);
            }
            catch (Exception)
            {
                result.ResultMessage = "error";
            }

            return(result);
        }