using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Eyepax.Test.Data;
namespace Eyepax.Test.Service
{
// NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in both code and config file together.
public class StudentService : IStudentService
{
TestDAL testDAL = new TestDAL();
public string GetData(int value)
{
return string.Format("You entered: {0}", value);
}
public CompositeType GetDataUsingDataContract(CompositeType composite)
{
if (composite == null)
{
throw new ArgumentNullException("composite");
}
if (composite.BoolValue)
{
composite.StringValue += "Suffix";
}
return composite;
}
public decimal GetDonationDetails(int id)
{
return testDAL.GetDonationDetails(id);
}
public List<Eyepax.Test.Model.Test> GetTests(int? id)
{
return testDAL.GetTestByIDLinq(id);
}
public void CreateTest(Model.Test tst)
{
testDAL.CreateTest(tst);
}
}
}