よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
public ActionResult SetHolidays(int id) { var companyHolidays = _companyService.CompanyHolidays(id); Dictionary <string, List <CompanyHolidayView> > obj = companyHolidays.GroupBy(x => x.HolidayType).ToDictionary(g => g.Key, g => g.ToList()); ViewBag.companyId = id; return(PartialView("_SetHolidays", obj)); }