Beispiel #1
0
 public static bool Checkifthereislike(string id)
 {
     using (kindergardenEntities db = new kindergardenEntities())
     {
         bool pass = PropertyChildrenDal.Checkifthereislike(id);
         return(pass);
     }
 }
Beispiel #2
0
 //public static string GetChild(string id)
 //{
 //    using (KindergardenEntities db = new KindergardenEntities())
 //    {
 //        string pass = (from o in db.Connections where o.UserId.Contains(id) select o.ChildId).FirstOrDefault();
 //        return pass;
 //    }
 //}
 public static string GetChild(string id)
 {
     using (kindergardenEntities db = new kindergardenEntities())
     {
         string pass = PropertyChildrenDal.GetChild(id);
         return(pass);
     }
 }
Beispiel #3
0
 public static List <Dal.Class1> GetAllChildren()
 {
     using (kindergardenEntities db = new kindergardenEntities())
     {
         List <Dal.Class1> Children = PropertyChildrenDal.GetAllChildren();
         return(Children);
     }
 }
Beispiel #4
0
 public static string GetUser(string id)
 {
     using (kindergardenEntities db = new kindergardenEntities())
     {
         string name = PropertyChildrenDal.GetUser(id);
         if (name != null)
         {
             return("Welcome " + name + " To enter press on your child picture");
         }
         return(name);
     }
 }
Beispiel #5
0
 public static Children Getallpropertyc(string id)
 {
     using (kindergardenEntities db = new kindergardenEntities())
     {
         Children pass = PropertyChildrenDal.Getallpropertyc(id);
         Children c    = new Children();
         c.ChildId    = pass.ChildId;
         c.ChildName  = pass.ChildName;
         c.ChildGroup = pass.ChildGroup;
         c.ChildClass = pass.ChildClass;
         return(c);
     }
 }
Beispiel #6
0
 public static bool UpdateChildren(PropertyChildrenDto ch)
 {
     using (kindergardenEntities db = new kindergardenEntities())
     {
         bool     id    = false;
         Children poDal = PropertyChildrenDto.ToDal(ch);
         if (poDal.ChildId != null && poDal.ChildClass != null && poDal.ChildGroup != null && poDal.ChildName != null)
         {
             id = PropertyChildrenDal.UpdateChildren(poDal);
         }
         return(id);
     }
     return(false);
 }