public void Update(Guardian guardian)
        {

            using (CosmosContext ctx = new CosmosContext())
            {
                Guardian attachedEnttiy = ctx.Guardians.Find(guardian.Id);

                if (attachedEnttiy != null)
                {
                    try
                    {
                        attachedEnttiy.Address = guardian.Address;
                        attachedEnttiy.Email = guardian.Email;
                        attachedEnttiy.GuardianNo = guardian.GuardianNo;
                        attachedEnttiy.Name = guardian.Name;
                        attachedEnttiy.Relation = guardian.Relation;

                        var attachedEntry = ctx.Entry(attachedEnttiy);
                        attachedEntry.CurrentValues.SetValues(attachedEnttiy);
                        ctx.SaveChanges();
                    }
                    catch (Exception ex)
                    {

                        throw;
                    }
                   
                }
            }

        }
 public Guardian AddGuardian(Guardian obj)
 {
     try
     {
         using (CosmosContext ctx = new CosmosContext())
         {
             ctx.Guardians.Add(obj);
             ctx.SaveChanges();
             return obj;
         }
     }
     catch (Exception ex)
     {
         throw;
     }
 }