Beispiel #1
0
        // POST: api/Regencies
        public HttpResponseMessage InsertRegency(RegencyParam RegencyParam)
        {
            var message = Request.CreateErrorResponse(HttpStatusCode.BadRequest, "Wrong Parameter");
            var result  = _iRegencyService.Insert(RegencyParam);

            if (result)
            {
                message = Request.CreateResponse(HttpStatusCode.OK, "Successfully Added");
            }
            return(message);
        }
 // POST: api/Regencies
 public void Post(RegencyParam regencyParam)
 {
     _regencyService.Insert(regencyParam);
 }