// GET: api/FromName
 public IHttpActionResult Get()
 {
     string returnValue = string.Empty;
     ReturnStatus returnStatus = new ReturnStatus();
     FromUserData fromUserData = new FromUserData();
     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();
            FromUserData fromUserData = new FromUserData();

            returnStatus = fromUserData.UpdateFromName(fromName.FromName);

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