public IHttpActionResult GetListOfDay(int roomId, string day) { var list = _service.GetListOfDay(roomId, DateTime.Parse(day)); if (list == null) { InternalServerError(new Exception("Нет данных")); } return(Ok(list)); }