57 lines
1.4 KiB
C#
57 lines
1.4 KiB
C#
using Microsoft.SelfService.Portal.Core.API.Context;
|
|
using Microsoft.SelfService.Portal.Core.API.Interfaces;
|
|
using Microsoft.SelfService.Portal.Core.API.Models;
|
|
|
|
namespace Microsoft.SelfService.Portal.Core.API.Repository
|
|
{
|
|
public class JobRepository : IJobInterface
|
|
{
|
|
private readonly DataContext _context;
|
|
|
|
public JobRepository(DataContext context)
|
|
{
|
|
_context = context;
|
|
}
|
|
|
|
public ICollection<JobModel> GetJobs()
|
|
{
|
|
return _context.Jobs.ToList();
|
|
}
|
|
|
|
bool IJobInterface.CheckJobById(Guid Id)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
bool IJobInterface.CreateJobById(JobModel job)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
bool IJobInterface.DeleteJobById(JobModel job)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
JobModel IJobInterface.GetJobById(Guid Id)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
ICollection<JobModel> IJobInterface.GetJobs()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
bool IAbstractInterface.SaveChanges()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
bool IJobInterface.UpdateJobById(JobModel job)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|