public JsonResult DeleteBranch(BranchModel vm)
 {
     return Json(new GenericResponse(false, "This feature is not supported"));
 }
        public async Task<JsonResult> EditBranch(BranchModel vm)
        {
            try
            {
                var branch = vm.ToBranch();
                await _translationService.UpdateBranchAsync(branch);
            }
            catch (Exception ex)
            {
                Trace.TraceError(ex.ToString());
                return Json(new GenericResponse(false, ex.Message));
            }

            return Json(new GenericResponse(true, AppResources.GenericSaveSuccess));
        }