public async Task <IActionResult> Delete(int id)
        {
            try
            {
                await _salesRecordService.RemoveAsync(id);

                return(RedirectToAction(nameof(Records)));
            }
            catch (IntegrityException e)
            {
                return(RedirectToAction(nameof(Error), new { message = e.Message }));
            }
        }