public async Task <bool> CreateAdminAccount(Admin admin)
        {
            if (LoginExist(admin))
            {
                return(false);
            }

            admin.password = Eramake.eCryptography.Encrypt(admin.password);

            await _repository.InsertEntityAsync(CollectionName, admin);

            return(true);
        }
Esempio n. 2
0
 public async Task CreateGuestAsync([FromBody] Guest guest)
 {
     await _repository.InsertEntityAsync(CollectionName, guest);
 }
Esempio n. 3
0
 public async Task CreateConferenceRoomAsync([FromBody] ConferenceRoom conferenceRoom)
 {
     await _repository.InsertEntityAsync(CollectionName, conferenceRoom);
 }
Esempio n. 4
0
 public async Task CreateStationAsync([FromBody] Station station)
 {
     await _repository.InsertEntityAsync(CollectionName, station);
 }
Esempio n. 5
0
 public async Task CreateRoomAsync([FromBody] Room room)
 {
     await _repository.InsertEntityAsync(CollectionName, room);
 }
Esempio n. 6
0
 public async Task CreateOfficeAsync([FromBody] Office office)
 {
     await _repository.InsertEntityAsync(CollectionName, office);
 }
Esempio n. 7
0
 public async Task CreateEmployeeAsync([FromBody] Employee employee)
 {
     await _repository.InsertEntityAsync(CollectionName, employee);
 }