private static bool ManagerAdded(ref Entities.Manager manager) { if (Dependencies.ManagerLogic.Add(ref manager)) { Message = "Менеджер добавлен"; } else { Message = $"Ошибка добавления менеджера, имя - '{manager.Name}'!"; } return(true); }
private static void LoadGeneralManager(int userManagerId) { var manager = new Entities.Manager(userManagerId, "Manager", Entities.Manager.Rank.General); Dependencies.ManagerLogic.Add(ref manager); }
/// <summary> /// Create a new Manager object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="email">Initial value of the Email property.</param> /// <param name="password">Initial value of the Password property.</param> /// <param name="nom">Initial value of the Nom property.</param> /// <param name="prenom">Initial value of the Prenom property.</param> /// <param name="restaurantID">Initial value of the RestaurantID property.</param> public static Manager CreateManager(global::System.Int32 id, global::System.String email, global::System.String password, global::System.String nom, global::System.String prenom, global::System.Int32 restaurantID) { Manager manager = new Manager(); manager.ID = id; manager.Email = email; manager.Password = password; manager.Nom = nom; manager.Prenom = prenom; manager.RestaurantID = restaurantID; return manager; }