public static bool UpdateDeveloper(string newDeveloper) { bool result = true; if (CountDeveloper(newDeveloper) == 0) { result = 1 == DeveloperAccessor.CreateDeveloper(newDeveloper, true); } return(result); }
public static int CountDeveloper(string developer) { int count = 0; try { count = DeveloperAccessor.CountDeveloper(developer); } catch (Exception) { throw; } return(count); }
public static bool VerifyDeveloper(string oldDeveloper) { bool result = true; if (string.IsNullOrEmpty(oldDeveloper)) { return(result); } if (CountDeveloper(oldDeveloper) == 0) { result = 1 == DeveloperAccessor.DeleteDeveloper(oldDeveloper); } return(result); }
public static bool CreateDeveloper(string developer, bool admin = false) { bool result = false; try { result = 1 == DeveloperAccessor.CreateDeveloper(developer, admin); } catch (Exception) { throw; } return(result); }
public static List <string> RetrieveDevelopers(bool active = true) { List <string> developers = null; try { developers = DeveloperAccessor.RetrieveDevelopers(true); } catch (Exception) { throw; } return(developers); }
public static bool ApproveDeveloper(string developer) { bool result = false; try { DeveloperAccessor.ApproveDeveloper(developer); result = true; } catch (Exception) { throw; } return(result); }