public bool PutSubscriber(SUBSCRIBER subscriber) { try { db.Entry(subscriber).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); return(true); } catch (Exception ex) { return(false); } }
public bool PutSubscriber(SUBSCRIBER subscriber) { var isUpdated = sportsSideService.PutSubscriber(subscriber); if (isUpdated) { return(true); } else { return(false); } }
public bool PostSubscriber(SUBSCRIBER subscribe) { try { db.SUBSCRIBER.Add(subscribe); db.SaveChanges(); return(true); } catch (Exception e) { return(false); } }
public bool PostSubscriber(SUBSCRIBER subscribe) { var isSaved = sportsSideService.PostSubscriber(subscribe); if (isSaved) { return(true); } else { return(false); } }