コード例 #1
0
 public bool Add(CustomerDemand item)
 {
     if (!string.IsNullOrWhiteSpace(item.Request))
     {
         _uof.CustomerDemandRepository.Add(item);
         return(_uof.ApplyChange());
     }
     return(false);
 }
コード例 #2
0
 public bool Add(Project item)
 {
     if (!string.IsNullOrWhiteSpace(item.ProjectName))
     {
         _uof.ProjectRepository.Add(item);
         return(_uof.ApplyChange());
     }
     return(false);
 }
コード例 #3
0
        // todo esra burayı tamamla

        public bool Add(Employee item)
        {
            if (!string.IsNullOrWhiteSpace(item.FirstName))
            {
                _uof.EmployeeRepository.Add(item);
                return(_uof.ApplyChange());
            }
            return(false);
        }
コード例 #4
0
 public bool Add(Customer item)
 {
     if (!string.IsNullOrWhiteSpace(item.CustomerName))
     {
         _uof.CustomerRepository.Add(item);
         return(_uof.ApplyChange());
     }
     return(false);
 }
コード例 #5
0
 public bool Add(State item)
 {
     if (!string.IsNullOrWhiteSpace(item.Status))
     {
         _uof.StateRepository.Add(item);
         return(_uof.ApplyChange());
     }
     return(false);
 }
コード例 #6
0
 public bool Add(Tasks item)
 {
     if (!string.IsNullOrWhiteSpace(item.TaskName))
     {
         _uof.TasksRepository.Add(item);
         return(_uof.ApplyChange());
     }
     return(false);
 }
コード例 #7
0
        public bool Add(ProjectEmployee item)
        {
            if (item.EmployeeId != 0 && item.ProjectId != 0)
            {
                _uof.ProjectEmployeeRepository.Add(item);


                return(_uof.ApplyChange());
            }
            return(false);
        }
コード例 #8
0
        public bool Add(EmployeeTasks item)
        {
            if (item.EmployeeId != 0 && item.TaskId != 0)
            {
                _uof.EmployeeTasksRepository.Add(item);


                return(_uof.ApplyChange());
            }
            return(false);
        }