コード例 #1
0
        public IActionResult CreateFirm(FirmDTO model)
        {
            var response = _firmService.CreateFirm(model);

            if (string.IsNullOrEmpty(response.Id))
            {
                return(OK(StatusCodeType.HAS_EXCEPTION, StatusMessage.HAS_EXCEPTION, response));
            }

            return(OK(StatusCodeType.SUCCESS, StatusMessage.SUCCESS, response));
        }