public void Put([FromBody] UserCoreEntity objUserCoreEntity) { 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.Edit(ref objUserCoreEntity); } objUserCore = null; }