Esempio n. 1
0
        public void AddWings(Wing objWing)
        {
            try
            {
                var objPersonsDL = new ResidentsSvcDL();
                objPersonsDL.AddWings(objWing);
            }
            catch (Exception)
            {

                throw;
            }
        }
Esempio n. 2
0
        public IList<FlatBO> GetFlats(int societyId)
        {
            var objPersonsDL = new ResidentsSvcDL();

            // The data type of flats is DbSet<Flat>
            var flats = objPersonsDL.GetFlats(societyId);

            //Return a list of Flats as per the business objects
            IList<FlatBO> fbo = new List<FlatBO>();
            foreach (var f in flats)
            {
                FlatBO a = new FlatBO();
                a.FlatId = f.Id;
                a.FlatName = f.FlatNo;
                a.NoOfResidents = Convert.ToInt32(f.NoOfResidents);
                fbo.Add(a);
            }
            return fbo;
        }
Esempio n. 3
0
 public IList<Society> GetSocieties()
 {
     var objPersonsDL = new ResidentsSvcDL();
     return objPersonsDL.GetSocieties();
 }
Esempio n. 4
0
 public void AddBuildings(Bldg objBldg)
 {
     var objPersonsDL = new ResidentsSvcDL();
     objPersonsDL.AddBuildings(objBldg);
 }