private string UpdateBranchInfo(VMMasterForm MstrInf)
        {
            var BrInfo = _brInfoService.All().ToList().FirstOrDefault(x => x.BrID == MstrInf.ID);

            if (BrInfo != null)
            {
                var BInfList  = _brInfoService.All().ToList().Where(c => c.BrID != MstrInf.ID).ToList();
                var IsCodExst = BInfList.FirstOrDefault(x => x.BranchCode == MstrInf.Code);

                if (IsCodExst == null)
                {
                    //BrInfo.BranchCode = MstrInf.Code;
                    BrInfo.BranchName  = MstrInf.Name;
                    BrInfo.BrLocalName = MstrInf.LocalName;
                    BrInfo.BrAddress   = MstrInf.Descr;

                    _brInfoService.Update(BrInfo);
                    _brInfoService.Save();


                    var BrID = BrInfo.BrID;

                    TransactionLogService.SaveTransactionLog(_transactionLogService, "MasterInformation", "UpdateBranchInfo",
                                                             BrID.ToString(), Session["UserName"].ToString());

                    return("1");
                }
                else
                {
                    return("3");
                }
            }
            else
            {
                return("2");
            }
        }