예제 #1
0
        public IEnumerable <IGrouping <string, Soldier> > GroupsoldierBycriteria()
        {
            List <BO.Soldier> soldiers = Converts.ConvertTypes <BO.meneger, DO.meneger>(dalObject.GetMeneger()).soldiers;

            return(from s in soldiers
                   group s by s.firstName);
        }
예제 #2
0
 public report GetReport(string id)
 {
     try
     {
         return(Converts.ConvertTypes <BO.report, DO.report>(dalObject.GetReport(id)));
     }
     catch (ArgumentNullException ex)
     {
         throw ex;
     }
 }
예제 #3
0
 public void updateMeneger(meneger meneger)
 {
     try
     {
         dalObject.updateMeneger(Converts.ConvertTypes <DO.meneger, BO.meneger>(meneger));
     }
     catch
     {
         throw new ArgumentNullException();
     }
 }
예제 #4
0
 public meneger GetMeneger()
 {
     try
     {
         return(Converts.ConvertTypes <BO.meneger, DO.meneger>(dalObject.GetMeneger()));
     }
     catch (ArgumentNullException ex)
     {
         throw ex;
     }
 }
예제 #5
0
 public Soldier GetSoldier(string id)
 {
     try
     {
         return(Converts.ConvertTypes <BO.Soldier, DO.Soldier>(dalObject.GetSoldier(id)));
     }
     catch (ArgumentNullException ex)
     {
         throw ex;
     }
 }
예제 #6
0
 public void addReport(report report)
 {
     dalObject.addReport(Converts.ConvertTypes <DO.report, BO.report>(report));
 }
예제 #7
0
 public void updateSoldier(Soldier updateSoldier)
 {
     dalObject.updateSoldier(Converts.ConvertTypes <DO.Soldier, BO.Soldier>(updateSoldier));
 }
예제 #8
0
 public void addSoldier(Soldier soldier)
 {
     dalObject.addSoldier(Converts.ConvertTypes <DO.Soldier, BO.Soldier>(soldier));
 }