- Timestamp:
- 09/17/11 18:31:34 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab.Services.Hello/3.3/HelloService.svc.cs
r6780 r6794 20 20 #endregion 21 21 22 23 using System; 22 24 namespace HeuristicLab.Services.Hello { 23 25 public class HelloService : IHelloService { … … 25 27 return "Hello"; 26 28 } 29 30 public string Say(string phrase) { 31 using (HelloEntities context = new HelloEntities()) { 32 Saying s = context.Sayings.CreateObject(); 33 s.message = phrase.Length > 256 ? phrase.Substring(0, 256) : phrase; 34 s.date = DateTime.Now; 35 context.Sayings.AddObject(s); 36 context.SaveChanges(); 37 } 38 return phrase; 39 } 27 40 } 28 41 }
Note: See TracChangeset
for help on using the changeset viewer.