예제 #1
0
 public bool Delete(int id)
 {
     try
     {
         var user = db.USERs.Find(id);
         if (user != null)
         {
             try
             {
                 googleCalendar.DeleteCalendar(user.CalendarId);
             }
             catch
             {
             }
             db.USERs.Remove(user);
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch
     {
         throw;
     }
 }