|
|
@ -26,13 +26,21 @@ public static class BlackListMapper
|
|
|
|
return new BlackList(ent.Email, ent.ExpirationDate);
|
|
|
|
return new BlackList(ent.Email, ent.ExpirationDate);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static BlackListEntity FromDTOToEntity(this BlackListDTO dto)
|
|
|
|
public static BlackListEntity FromDtoToEntity(this BlackListDTO dto)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return new BlackListEntity(dto.Email, dto.ExpirationDate);
|
|
|
|
return new BlackListEntity
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Email = dto.Email,
|
|
|
|
|
|
|
|
ExpirationDate = dto.ExpirationDate
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static BlackListEntity FromModelToEntity(this BlackList model)
|
|
|
|
public static BlackListEntity FromModelToEntity(this BlackList model)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return new BlackListEntity(model.Email, model.ExpirationDate);
|
|
|
|
return new BlackListEntity
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Email = model.Email,
|
|
|
|
|
|
|
|
ExpirationDate = model.ExpirationDate
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|