public override int GetHashCode() { int hash = GetType().GetHashCode(); hash = (hash * 397) ^ Businessentityid.GetHashCode(); hash = (hash * 397) ^ Departmentid.GetHashCode(); hash = (hash * 397) ^ Shiftid.GetHashCode(); hash = (hash * 397) ^ Startdate.GetHashCode(); return(hash); }
public static List <Departmentid> GetAllDepartment() { DepartmentService departmentService = new DepartmentService(); var items = new List <Departmentid> { }; foreach (var item in departmentService.GetAll()) { Departmentid obj = new Departmentid(); obj.ID = item.id; obj.DepartmentName = item.Name; items.Add(obj); } return(items); }