propertyAndLtv Delete api :GWM
This commit is contained in:
parent
1d86263f94
commit
2e8f5fbb6d
@ -932,7 +932,28 @@ exports.PropertyAndLtvList = async (req, res) =>
|
||||
};
|
||||
|
||||
|
||||
|
||||
//delete Property & LTV Details Api
|
||||
exports.deletePropertyAndLtv = async (req, res) =>
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
PropertyAndLtv.delete({ where: { id: req.query.id }})
|
||||
.then(data =>
|
||||
{
|
||||
res.send({'status':200,'message':"success",'data':"No data"});
|
||||
|
||||
})
|
||||
.catch(err => {
|
||||
res.send({'status':404,
|
||||
message: err.message || "Some error occurred while retrieving statements." ,'data': "No data" });
|
||||
});
|
||||
|
||||
} catch(err) {
|
||||
res.send({'status':404,message: err.message || "Some error occurred while inserting statements." ,'data': "No data" });
|
||||
} //end of try catch
|
||||
|
||||
}
|
||||
|
||||
//create LoanDetail Api
|
||||
exports.createLoanDetail = async (req, res) =>
|
||||
|
||||
@ -2064,6 +2064,8 @@ router.post("/updatePropertyAndLtv", Entitycontroller.updatePropertyAndLtv);
|
||||
*/
|
||||
router.get("/PropertyAndLtvList", Entitycontroller.PropertyAndLtvList);
|
||||
|
||||
router.get("/deletePropertyAndLtv", Entitycontroller.deletePropertyAndLtv);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user