public void AddFloor(FloorDto floorDto, long adminId) { ValidateFloor(floorDto, adminId); var floor = Mapper.Map <Floor>(floorDto); floor.AdminId = adminId; _floorService.Insert(floor); SaveChanges(); }
public void AddFloor(FloorDto floorDto, long adminId) { ValidateFloor(floorDto, adminId); var floor = Mapper.Map <Floor>(floorDto); floor.AdminId = adminId; _floorService.Insert(floor); SaveChanges(); }