Пример #1
0
        public IActionResult AddFirmJobPost(JobPostDTO model)
        {
            var firm = _firmService.GetFirmById(model.FirmId);

            if (string.IsNullOrEmpty(firm.Id))
            {
                return(OK(StatusCodeType.FIRM_NOTFOUND, StatusMessage.FIRM_NOTFOUND, false));
            }

            var response = _firmService.AddFirmJobPost(model);

            if (response == null)
            {
                return(OK(StatusCodeType.HAS_EXCEPTION, StatusMessage.HAS_EXCEPTION, false));
            }

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