public ActionResult <LoanApplicationRespObj> DeleteCreditLoanComment([FromBody] DeleteLoanCommand command) { var response = false; var Ids = command.Ids; foreach (var id in Ids) { response = _repo.DeleteCreditLoanComment(id); } if (!response) { return(BadRequest( new DeleteRespObj { Deleted = false, Status = new APIResponseStatus { Message = new APIResponseMessage { FriendlyMessage = "Unsuccessful" } } })); } return(Ok( new DeleteRespObj { Deleted = true, Status = new APIResponseStatus { Message = new APIResponseMessage { FriendlyMessage = "Successful" } } })); }