public ActionResult Group(string RecordId, string MenuId)
        {
            GenelRepository gnlDB = RepositoryManager.GetRepository <GenelRepository>();
            Group           model = new Group();

            MenuId         = GlobalHelper.Decrypt(MenuId);
            model.RecordId = RecordId;
            model.MenuId   = MenuId;
            SessionContext.Current.ActiveUser.MenuId = MenuId;



            Guid recordId = Guid.Empty;

            if (GlobalHelper.IsGuid(model.RecordId))
            {
                try
                {
                    recordId = Guid.Parse(model.RecordId);
                    model    = gnlDB.BindGroup(model, recordId);
                    ViewBag.ResultMessage = Resources.GlobalResource.transaction_success;
                }
                catch (Exception exp)
                {
                    ViewBag.Success = false;
                    ModelState.AddModelError("Error", exp.Message);
                }
            }


            if (!string.IsNullOrEmpty(model.ManagerId) && GlobalHelper.IsGuid(model.ManagerId))
            {
                gnl_users userManager = gnlDB.GetUser(Guid.Parse(model.ManagerId));

                if (userManager != null)
                {
                    model.ManagerName = userManager.name + " " + userManager.surname;
                }
            }

            return(View(model));
        }