public IActionResult Remove(int id) { var resu = loantypeService.GetLoanTypeById(id); if (resu == null) { return(NotFound()); } loantypeService.RemoveLoanType(resu.Result); return(Ok(new { responseCode = 200, responseDescription = "Deleted Successful" })); }