public void Create(DalStatus e)
 {
     var status = new Status()
     {    
         Name = e.Name
     };
     context.Set<Status>().Add(status);
 }
 public void Delete(DalStatus e)
 {
     var status = new Status()
     {
         Name = e.Name
     };
     status = context.Set<Status>().Single(s => s.StatusId == status.StatusId);
     context.Set<Status>().Remove(status);
 }
 public void Update(DalStatus e)
 {
     var status = new Status()
     {
         StatusId = e.Id,
         Name = e.Name
     };
     status = context.Set<Status>().Single(s => s.StatusId == status.StatusId);
     context.Entry(status).State = System.Data.Entity.EntityState.Modified;
     // throw new NotImplementedException();
 }