Ejemplo n.º 1
0
        public IHttpActionResult Post(WebUser user)
        {
            try
            {
                BizUser bizUser      = user.WebUserToBizUser();
                WebUser userResponse = userFunctions.BizFuncLogin(bizUser.Email, bizUser.PassWord).BizUserToWebUser();

                if (userResponse == null)
                {
                    return(Unauthorized());
                }
                else
                {
                    return(Ok(userResponse));
                }
            }

            catch (Exception ex)
            {
                return(BadRequest());
            }
        }