public Projects AddorUpdate(Projects projects) { _projectRepository.AddOrUpdate(projects); _projectRepository.SaveChanges(); return(projects); }
private async Task SynchronizeProjects() { var projects = await ProjectService.GetUnsynced(AppSettings.LastSyncDate); ProjectRepository.AddOrUpdate(projects); }
public bool Update(Project item) { return(_repository.AddOrUpdate(item)); }