Exemple #1
0
 public bool PutSubscriber(SUBSCRIBER subscriber)
 {
     try
     {
         db.Entry(subscriber).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
Exemple #2
0
        public bool PutSubscriber(SUBSCRIBER subscriber)
        {
            var isUpdated = sportsSideService.PutSubscriber(subscriber);

            if (isUpdated)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemple #3
0
 public bool PostSubscriber(SUBSCRIBER subscribe)
 {
     try
     {
         db.SUBSCRIBER.Add(subscribe);
         db.SaveChanges();
         return(true);
     }
     catch (Exception e)
     {
         return(false);
     }
 }
Exemple #4
0
        public bool PostSubscriber(SUBSCRIBER subscribe)
        {
            var isSaved = sportsSideService.PostSubscriber(subscribe);

            if (isSaved)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }