예제 #1
0
        public IHttpActionResult GetAllOrganization()
        {
            try
            {
                List <OrganizationBasicInfo> orgList;

                using (var db = new OrganizationDAL())
                {
                    orgList = db.GetAllOrganization();
                }

                return(Ok(new HTTPMessageDTO
                {
                    Status = WsConstant.HttpMessageType.SUCCESS,
                    Message = "",
                    Type = "",
                    Data = orgList
                }));
            }
            catch (Exception)
            {
                return(Ok(new HTTPMessageDTO
                {
                    Status = WsConstant.HttpMessageType.ERROR,
                    Message = "",
                    Type = ""
                }));
            }
        }