Example #1
0
        //public static void AddOrganization(Dal.Organization o)
        //{

        //    try
        //    {
        //        db.Organizations.Add(o);
        //        db.SaveChanges();

        //    }
        //    catch
        //    {
        //        return false;
        //    }

        //}

        //public static AddOrganization(Dal.Organization o)
        //{
        //    try
        //    {
        //        db.Organizations.Add(o);
        //        db.SaveChanges();
        //        return true;
        //    }
        //    catch
        //    {
        //        return false;
        //    }
        //}
        public static bool RemoveOrganization(Dal.Organization o)
        {
            try
            {
                db.Organizations.Remove(o);
                db.SaveChanges();
                return(true);
            }
            catch
            {
                return(false);
            }
        }
Example #2
0
 public static bool AddOrganization(Dal.Organization organization)
 {
     try
     {
         db.Organizations.Add(organization);
         db.SaveChanges();
         return(true);
     }
     catch
     {
         return(false);
     }
 }