public IActionResult PostVacation([FromBody] VacationForCreationDTO vacationFromRequest) { if (vacationFromRequest == null) { return(BadRequest()); } if (!ModelState.IsValid) { return(BadRequest()); } _repo.AddVacation(ModelsMapping.GetVacationEntity(vacationFromRequest)); return(Ok()); }