Exemple #1
0
        public IActionResult GetRdIdentificationDocumentsDetails(string RdName, string RdNameCode)
        {
            IdentificationDocumentsDt IdentificationDocumentsDto = new IdentificationDocumentsDt();

            try
            {
                IdentificationDocumentsDto = objRdconfig.GetIdentificationDocumentsRD(RdName, RdNameCode, Con);
                return(IdentificationDocumentsDto != null?Ok(IdentificationDocumentsDto) : (IActionResult)StatusCode(StatusCodes.Status204NoContent));
            }
            catch (Exception)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError));

                throw;
            }
        }
Exemple #2
0
        public IActionResult SaveRDIdentificationDocumentsDetails([FromBody]  IdentificationDocumentsDt IdentificationDocumentsDto)
        {
            try
            {
                if (objRdconfig.SaveIdentificationDocumentsRD(IdentificationDocumentsDto, Con))
                {
                    return(Ok(true));
                }
                else
                {
                    return(StatusCode(StatusCodes.Status304NotModified));
                }
            }
            catch (Exception)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError));

                throw;
            }
        }