static double UpdateSubject() { var subjectToUpd = SubjectLogic .Read(new Subject { Name = "Газодинамика" }) .FirstOrDefault(); var newSubject = new Subject { Id = subjectToUpd.Id, Name = subjectToUpd.Name, Hours = 130 }; var startTime = DateTime.Now; SubjectLogic.Update(newSubject); var finishTime = DateTime.Now; Console.WriteLine("---Скрипт UpdateSubject выполнен"); return((finishTime - startTime).TotalMilliseconds); }