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); } }
public IEnumerable <Role> GetAllActiveRole() { return(_roleRepository.Find(f => !f.IsDeleted)); }
public IEnumerable <User> GetActiveUser() { return(_userRepository.Find(f => !f.IsDeleted)); }