public async Task <IActionResult> ChangeStatus(long id)
        {
            MeasurmentUnit model = await _repository.GetMeasurmentUnitAsync(id);

            if (model != null)
            {
                model.LastModifiedByName = User.Identity.Name;
                int result = await _repository.UpdateMeasurmentUnitAsync(model, true);

                if (result > 0)
                {
                    TempData["MeasurmentUnitMessage"] = _stringLocalizer["Measurment unit changed"].ToString();
                    return(RedirectToAction(nameof(Index)));
                }
                else if (result == 0)
                {
                    return(RedirectToAction(nameof(Index)));
                }
            }
            TempData["MeasurmentUnitMessage"] = _stringLocalizer["Missing measurment unit"].ToString();
            return(RedirectToAction(nameof(Index)));
        }