public void UpdateModel(Student student, string iconPath, string thumbnailPath) { student.Id = Guid.NewGuid().ToString(); student.IconUrl = iconPath; student.ThumbnailUrl = thumbnailPath; }
public ActionResult Index() { var student = new Student() { Name = "Тестовый", Group = "ПИ-99", IconUrl = "Content/Images/Students/arsen.jpg", Rate = 3, SocialUrl = "", Description="Очень, очень, очень хороший студент" }; Site.Providers.StudentsProvider.Create(student); return View(); }