public Employees(int employeesId, string employeesName, DateTime employeesDob, TypeOfPosition employeesPosition, Department department) { EmployeesId = employeesId; EmployeesName = employeesName; EmployeesDob = employeesDob; EmployeesPosition = employeesPosition; Department = department; }
public void RemoveTypeOfPosition(int id) { TypeOfPosition top = _db.TypeOfPosition.FirstOrDefault(t => t.Id == id); if (top != null) { _db.TypeOfPosition.Remove(top); } _db.SaveChanges(); }
public void UpdateTypeOfPosition(int id, TypeOfPosition top) { TypeOfPosition topdb = _db.TypeOfPosition.FirstOrDefault(t => t.Id == id); if (topdb != null) { topdb.Title = top.Title; _db.TypeOfPosition.Update(topdb); } _db.SaveChanges(); }
public void UpdateBdTypeOfPosition(TypeOfPosition top) { http.PutAsJsonAsync($"api/TypeOfPositions/{top.Id}", top); }
public TypeOfPosition AddBdTypeOfPosition(TypeOfPosition top) { http.PostAsJsonAsync <TypeOfPosition>("api/TypeOfPositions", top); return(http.GetFromJsonAsync <TypeOfPosition>("api/TypeOfPositions/getEndTypeOfPosition").Result); }
public void AddTypeOfPosition(TypeOfPosition top) { _db.TypeOfPosition.Add(top); _db.SaveChanges(); }
//icomparable sorts players by position public int CompareTo(Player other) { return(TypeOfPosition.CompareTo(other.TypeOfPosition)); }