public IList <Munit> GetMunits() { var munitMeneger = new MunitManager(); return(munitMeneger.GetMunit().Select(m => m.ToServiceMunit()).ToList()); }
public int CreateOrUpdateMunit(Munit munit) { var munitMeneger = new MunitManager(); return(munitMeneger.CreateOrUpdateMunit(munit.ToDatMunit())); }
public int DisableMunit(int id) { var munitMeneger = new MunitManager(); return(munitMeneger.DisableMunit(id)); }
public Munit GetMunit(int id) { var munitMeneger = new MunitManager(); return(munitMeneger.GetMunit(id).ToServiceMunit()); }