예제 #1
0
        public async Task AddCabinetToPhone(int phoneId, int cabinetId)
        {
            Phone phone = await phoneService.GetPhone(phoneId);

            Cabinet cabinet = await cabinetService.GetCabinet(cabinetId);

            await phoneService.AddCabinetToPhone(phone, cabinet);
        }
예제 #2
0
 public async Task <Cabinet> GetCabinet(int id)
 {
     return(await cabinetService.GetCabinet(id));
 }