Esempio n. 1
0
        public HttpResponseMessage CheckLoginEmail(ValidationParameter parameter)
        {
            var transaction = new TransactionalInformation();
            var exists      = docDataService.CheckLoginEmail(parameter.ID, parameter.Type, parameter.ContentToValidate, connectionString, SessionToken, out transaction);

            if (transaction.ReturnStatus)
            {
                if (exists)
                {
                    return(Request.CreateResponse(HttpStatusCode.NotAcceptable));
                }

                return(Request.CreateResponse(HttpStatusCode.OK));
            }

            return(Request.CreateResponse(HttpStatusCode.BadRequest));
        }