Ejemplo n.º 1
0
        public ActionResult k_jDelete([DataSourceRequest] DataSourceRequest request, TurkcellFacebookDunyasi.Core.Admin item)
        {
            if (item != null)
            {
                repository.DeleteAndCommit(item);
            }

            return(k_jRead(request));
        }
Ejemplo n.º 2
0
 public ActionResult Default(TurkcellFacebookDunyasi.Core.Admin entity)
 {
     TurkcellFacebookDunyasi.Core.Admin _admin = service.Auth(entity);
     if (_admin != null)
     {
         Logon(_admin);
         return(ViewMain());
     }
     ViewBag.LoginFailed = true;
     return(View());
 }
Ejemplo n.º 3
0
        public ActionResult UserSelfForm(TurkcellFacebookDunyasi.Core.Admin entity)
        {
            try
            {
                entity.Id = session.AdminId;
                repository.SaveAndCommit(entity);

                session.FirstName = entity.FirstName;
                session.LastName  = entity.LastName;
                session.UserPhoto = entity.FileName;

                return(PartialResultSuccess());
            }
            catch (Exception)
            {
                return(PartialResultError());
            }
        }
Ejemplo n.º 4
0
        private void FillSession(TurkcellFacebookDunyasi.Core.Admin entity)
        {
            session.IsLogin   = true;
            session.AdminId   = entity.Id;
            session.Username  = entity.Username;
            session.FirstName = entity.FirstName;
            session.LastName  = entity.LastName;
            session.UserPhoto = entity.FileName;
            session.FullAuth  = entity.FullAuth;

            SetStatics();

            List <Core.CustomModels.PanelMenuModel> listPanelMenuModel =
                (entity.FullAuth) ?
                modulService.GetPanelMenuList() :
                modulService.GetAdminPermissions(entity.Id);

            session.Permissions = listPanelMenuModel;
        }
Ejemplo n.º 5
0
 private ActionResult AutoLogin()
 {
     TurkcellFacebookDunyasi.Core.Admin _admin = repository.GetById(config.AdminId);
     Logon(_admin);
     return(ViewMain());
 }