コード例 #1
0
        public HttpResponseMessage GetAll()
        {
            List <UserCoreEntity> objSangamCoreEntityList = new List <UserCoreEntity>();

            Mugurtham.Core.Login.LoggedInUser objLoggedIn = new Core.Login.LoggedInUser(Request.Headers.GetValues("MugurthamUserToken").FirstOrDefault(),
                                                                                        Request.Headers.GetValues("CommunityID").FirstOrDefault());
            UserCore objUserCore = new UserCore(objLoggedIn.ConnectionStringAppKey);

            using (objUserCore as IDisposable)
                objUserCore.GetAll(ref objSangamCoreEntityList);
            objUserCore = null;
            return(Request.CreateResponse(HttpStatusCode.OK, objSangamCoreEntityList,
                                          Configuration.Formatters.JsonFormatter));
        }
コード例 #2
0
 public IEnumerable <User> GetAll()
 {
     return(core.GetAll());
 }