public IActionResult GetFundTypeByCode(string id) { var fund = loantypeService.GetLoanTypeByCode(id); if (fund == null) { return(Ok(new { responseCode = 404, responseDescription = "Loan type Code does not Exist" })); } return(Ok(new { responseCode = 200, responseDescription = "loan type Code Exist", Data = fund })); }