Beispiel #1
0
 public ActionResult Get([FromQuery] int?projectid)
 {
     if (projectid.HasValue)
     {
         return(Ok(apartmentService.GetApartmentsByProjectId(projectid.Value)));
     }
     else
     {
         return(Ok(apartmentService.GetAll()));
     }
 }