private void AddStaffMember(string firstName, string lastName) { using (var api = new BusinessContext()) { var staffmember = new StaffModel { FirstName = firstName, LastName = lastName }; try { api.AddNewStaffMember(staffmember); } catch (Exception) { // TODO: Cover error handling Console.WriteLine("APi.addNewStaffMember Failed"); } this.Success = "Staff Member " + this.FirstName + " " + this.LastName + " added"; this.StaffMembers.Add(staffmember); } }