Beispiel #1
0
 public ServiceType Post(ServiceType serviceType)
 {
     if (serviceType == null || !ModelState.IsValid)
     {
         throw new HttpException((int)HttpStatusCode.BadRequest, "Invalid Request");
     }
     return(serviceTypeService.SaveServiceType(serviceType.CreateFrom()).CreateFrom());
 }