public HttpResponseMessage GetAllSangamUsers(string ID) { List <UserCoreEntity> objSangamCoreEntityList = new List <UserCoreEntity>(); if (!string.IsNullOrWhiteSpace(ID)) { 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.GetAllSangamUsers(ref objSangamCoreEntityList, ID); objUserCore = null; } return(Request.CreateResponse(HttpStatusCode.OK, objSangamCoreEntityList, Configuration.Formatters.JsonFormatter)); }