public IActionResult Create([FromBody] Tenant tenant) { if (tenant == null) { return(BadRequest()); } // TODO: Save the tenant here to DB DBlayer dbLayer = new DBlayer(); tenant = dbLayer.Create(tenant); // tenant = TestData.tenant; return(CreatedAtRoute("tenant", new { id = tenant.Id }, tenant)); }