public IHttpActionResult GetAllOrganizationWaitForAccept() { try { List <OrganizationBasicInfo> orgList; using (var db = new OrganizationDAL()) { orgList = db.GetAllOrganizationWaitForAcception(); } return(Ok(new HTTPMessageDTO { Status = WsConstant.HttpMessageType.SUCCESS, Message = "", Type = "", Data = orgList })); } catch (Exception) { return(Ok(new HTTPMessageDTO { Status = WsConstant.HttpMessageType.ERROR, Message = "", Type = "" })); } }