Code Behind Page Page /WebServices/LogService.asmx.cs (C#)
Used by Page /WebServices/LogService.asmx (C#)
1: using System;  
2: using System.Collections.Generic;  
3: using System.Linq;  
4: using System.Web;  
5: using System.Web.Services;  
6: using QuizNetOnline.Logic;  
7: using Microsoft.ApplicationBlocks.Data;  
8:   
9: namespace QuiznetOnline.Web.UI.WebServices  
10: {  
11:     /// <summary>  
12:     /// Summary description for MapService  
13:     /// </summary>  
14:     [WebService(Namespace = "http://tempuri.org/")]  
15:     [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]  
16:     [System.ComponentModel.ToolboxItem(false)]  
17:     // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.    
18:     [System.Web.Script.Services.ScriptService]  
19:     public class LogService : System.Web.Services.WebService  
20:     {  
21:         [WebMethod]  
22:         public List<Log> GetLog(bool OnlyRegisteredUsers, string LogArea, string LogLocation)  
23:         {  
24:             Log log = new Log();  
25:   
26:             if (LogArea == string.Empty)  
27:                 LogArea = null;  
28:   
29:             if (LogLocation==null || LogLocation == string.Empty || LogLocation.ToLower() == "all")  
30:                 LogLocation = null;  
31:               
32:             return log.GetLog(0, OnlyRegisteredUsers, LogArea, LogLocation,new SqlWrapper());  
33:         }  
34:   
35:         [WebMethod]  
36:         public void ClearLog()  
37:         {  
38:             Log log = new Log();  
39:             log.ClearLog();  
40:         }  
41:     }  
42: }  

.NET Documentation Tool is © 2002 - 2009 Winnersh Triangle Web Solutions Limited.