public async Task <Department> Add(Department department) { context.Entry(department).State = EntityState.Added; await context.SaveChangesAsync(); return(department); }
public async Task <Employee> Add(Employee employee) { context.Entry(employee).State = EntityState.Added; await context.SaveChangesAsync(); return(employee); }