public HttpResponseMessage Add([FromBody] UserCoreEntity objUserCoreEntity) { string strUserID = string.Empty; 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.Add(ref objUserCoreEntity, out strUserID); } objUserCore = null; return(Request.CreateResponse(HttpStatusCode.OK, strUserID, Configuration.Formatters.JsonFormatter)); }