public async Task <IActionResult> DeleteWithdrawalSetupAsync([FromBody] DeleteRequest item) { var response = false; var Ids = item.ItemIds; foreach (var id in Ids) { response = await _repo.DeleteWithdrawalSetupAsync(id); } if (!response) { return(BadRequest( new DeleteRespObjt { Deleted = false, Status = new APIResponseStatus { Message = new APIResponseMessage { FriendlyMessage = "Unsuccessful" } } })); } return(Ok( new DeleteRespObjt { Deleted = true, Status = new APIResponseStatus { Message = new APIResponseMessage { FriendlyMessage = "Successful" } } })); }