27 lines
616 B
C#
27 lines
616 B
C#
using Cowain.Bake.Model;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Unity;
|
|
|
|
namespace Cowain.Bake.BLL
|
|
{
|
|
public class AlarmContentService : ServiceBase
|
|
{
|
|
public AlarmContentService(IUnityContainer unityContainer) : base(unityContainer)
|
|
{
|
|
}
|
|
|
|
public List<TAlarmContent> GetAll()
|
|
{
|
|
using (var Context = new BakingEntities())
|
|
{
|
|
return (from c in Context.Set<TAlarmContent>()
|
|
select c).ToList();
|
|
}
|
|
}
|
|
}
|
|
}
|