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); }
public report GetReport(string id) { try { return(Converts.ConvertTypes <BO.report, DO.report>(dalObject.GetReport(id))); } catch (ArgumentNullException ex) { throw ex; } }
public void updateMeneger(meneger meneger) { try { dalObject.updateMeneger(Converts.ConvertTypes <DO.meneger, BO.meneger>(meneger)); } catch { throw new ArgumentNullException(); } }
public meneger GetMeneger() { try { return(Converts.ConvertTypes <BO.meneger, DO.meneger>(dalObject.GetMeneger())); } catch (ArgumentNullException ex) { throw ex; } }
public Soldier GetSoldier(string id) { try { return(Converts.ConvertTypes <BO.Soldier, DO.Soldier>(dalObject.GetSoldier(id))); } catch (ArgumentNullException ex) { throw ex; } }
public void addReport(report report) { dalObject.addReport(Converts.ConvertTypes <DO.report, BO.report>(report)); }
public void updateSoldier(Soldier updateSoldier) { dalObject.updateSoldier(Converts.ConvertTypes <DO.Soldier, BO.Soldier>(updateSoldier)); }
public void addSoldier(Soldier soldier) { dalObject.addSoldier(Converts.ConvertTypes <DO.Soldier, BO.Soldier>(soldier)); }