// GET: api/FromName
 public IHttpActionResult Get()
 {
     string returnValue = string.Empty;
     ReturnStatus returnStatus = new ReturnStatus();
     FromUserRepository fromUserData = new FromUserRepository();
     returnStatus = fromUserData.GetCurrentUserName();
     if (returnStatus.StatusText == "OK")
     {
         return Ok(returnStatus);
     }
     else
     {
         return BadRequest(returnStatus.ErrorMessage);
     }
 }
            // POST: api/FromName
            public IHttpActionResult Post([FromBody]From fromName)
            {
                ReturnStatus returnStatus = new ReturnStatus();
                FromUserRepository fromUserData = new FromUserRepository();

                returnStatus = fromUserData.UpdateFromName(fromName.FromName);

                if (returnStatus.Status)
                {
                    return Ok();
                }
                else
                {
                    return BadRequest(returnStatus.ErrorMessage);
                }
            }