public void Create(PlateRequest request) { _plateRepository.Add(new Plate() { FirstName = request.FirstName, LastName = request.LastName, Reason = request.Reason ?? SearchReason.Missing, BaseImage = request.BaseImage.ConvertToBytesOrDefault(Array.Empty <byte>()), NumberPlate = request.NumberPlate }); }