public static bool UpdatePublisher(string newPublisher) { bool result = true; if (CountPublisher(newPublisher) == 0) { result = 1 == PublisherAccessor.CreatePublisher(newPublisher, true); } return(result); }
public static bool CreatePublisher(string publisher, bool admin = false) { bool result = false; try { result = 1 == PublisherAccessor.CreatePublisher(publisher, admin); } catch (Exception) { throw; } return(result); }