public HttpResponseMessage GetLogin(string email, string password)
 {
     var model = repo.getCustomer(email, password);
     if (model == null)
     {
         return Request.CreateResponse(HttpStatusCode.NotFound);
     }
     else
     {
         var view = new CustomerView(model);
         return Request.CreateResponse(HttpStatusCode.OK, view);
     }
 }
        public HttpResponseMessage GetLogin(string email, string password)
        {
            var model = repo.getCustomer(email, password);

            if (model == null)
            {
                return(Request.CreateResponse(HttpStatusCode.NotFound));
            }
            else
            {
                var view = new CustomerView(model);
                return(Request.CreateResponse(HttpStatusCode.OK, view));
            }
        }
        public HttpResponseMessage Customer(int id)
        {
            var model = repo.getMission(id);

            if (model == null)
            {
                return(Request.CreateResponse(HttpStatusCode.NotFound));
            }
            else
            {
                var customer = model.customer;
                var view     = new CustomerView(customer);
                return(Request.CreateResponse(HttpStatusCode.OK, view));
            }
        }
 public HttpResponseMessage Customer(int id)
 {
     var model = repo.getMission(id);
     if (model == null)
     {
         return Request.CreateResponse(HttpStatusCode.NotFound);
     }
     else
     {
         var customer = model.customer;
         var view = new CustomerView(customer);
         return Request.CreateResponse(HttpStatusCode.OK, view);
     }
 }