示例#1
0
        public Projects AddorUpdate(Projects projects)
        {
            _projectRepository.AddOrUpdate(projects);
            _projectRepository.SaveChanges();

            return(projects);
        }
示例#2
0
        private async Task SynchronizeProjects()
        {
            var projects = await ProjectService.GetUnsynced(AppSettings.LastSyncDate);

            ProjectRepository.AddOrUpdate(projects);
        }
示例#3
0
 public bool Update(Project item)
 {
     return(_repository.AddOrUpdate(item));
 }