Beispiel #1
0
        public ActionResult AddPerkTask(int Id)
        {
            TittleUserServices service = new TittleUserServices();

            CustomPerkTask model = new CustomPerkTask();

            if (Id > 0)
            {
                perks_tasks _data = service.GetPerkTaskInfo(Id);
                model.key              = _data.key;
                model.name             = _data.name;
                model.number_to_finish = _data.number_to_finish;
                model.score            = _data.score;
                model.icon             = _data.icon;
                model.id = _data.id;
            }
            return(PartialView("AddPerkTask", model));
        }