public async Task <IActionResult> Post([FromBody] Userprofile t)
 {
     try
     {
         return(Ok(await context.Post(t)));
     }
     catch (Exception ex)
     {
         return(BadRequest(new ErrorMessage(ex.Message)));
     }
 }
        public IHttpActionResult Post([FromBody] userprofile t)
        {
            var identity = User.Identity.Name;

            try
            {
                return(Ok(context.Post(t, identity)));
            }
            catch (Exception ex)
            {
                return(Content(HttpStatusCode.NotModified, ex.Message));
            }
        }