public async Task <IActionResult> AddUnavailability([FromBody] AddUnavailabilityCommand command ) { if (!ModelState.IsValid) { return((IActionResult)BadRequest()); } var result = await _serviceCategoryService.AddUnavailability(command); return(CreatedAtAction(nameof(AddUnavailability), new { id = result.Id }, null)); }