Esempio n. 1
0
        public bool CheckExistRecord(OtgulRecord otgulRecord)
        {
            IEnumerable <OtgulRecord> tmpOtgulRecord = _otgulRecordRepository.Find(record =>
                                                                                   record.User.Id == otgulRecord.User.Id &&
                                                                                   record.Action == otgulRecord.Action &&
                                                                                   record.MinutCount == otgulRecord.MinutCount &&
                                                                                   record.Date == otgulRecord.Date &&
                                                                                   record.Guide.Id == otgulRecord.Guide.Id
                                                                                   );

            if (tmpOtgulRecord == null)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
Esempio n. 2
0
 public IEnumerable <Role> GetAllActiveRole()
 {
     return(_roleRepository.Find(f => !f.IsDeleted));
 }
Esempio n. 3
0
 public IEnumerable <User> GetActiveUser()
 {
     return(_userRepository.Find(f => !f.IsDeleted));
 }