public async Task <IActionResult> ApproveDisApprovedUserRequest(RequestApproveModel model) { SecurityModel securityModel = (SecurityModel)(HttpContext.Items["SecurityModel"]); ResponseModel <string> response = new ResponseModel <string>(); try { response = await _adminServices.ApproveUserRequest(model, securityModel); response.Token = securityModel.Token; if (!response.Status) { return(BadRequest(response)); } return(Ok(response)); } catch (Exception ex) { response.Status = false; response.ReturnMessage.Add(ex.Message); return(BadRequest(response)); } }