public Day Create(CreateDayCommand command) { var Day = new Day(command.DayOfWeek, command.Active, command.Reserved); Day.Create(); _repository.Create(Day); if (Commit()) { return(Day); } return(null); }