Ejemplo n.º 1
0
        public IHttpActionResult GetUserInfoByEmail(string email, string userName, string methodName, string formName)
        {
            DataTable dt = _clientsService.GetClientByEmail(email, userName, methodName, formName);

            if (dt.TableName == "Error")
            {
                return(ResponseMessage(Request.CreateErrorResponse((HttpStatusCode)500, new HttpError("Something went wrong"))));
            }

            return(Ok(dt));
        }