Exemple #1
0
 public Door ToWebModel(Data.Door door)
 {
     return(new Door
     {
         Guid = door.Guid,
         Name = door.Name
     });
 }
        public async Task <Core.Entities.Door> GetDoorByCompanyIdName(int companyId, string name)
        {
            Data.Door dbDoor = await dbDoors.FirstOrDefaultAsync(x => x.CompanyId == companyId && x.Name == name);

            return(dbDoor == null
                                ? null
                                : dbDoor.ToEntity());
        }