public ViewResult Update(int id) { Programme program = _programRepo.GetProgramme(id); ProgramViewModel model = new ProgramViewModel() { ProgramName = program.Program_Name, duration = program.Duration, cost = program.Cost }; return(View(model)); }