Exemplo n.º 1
0
        public ActionResult Index(int? userId=null)
        {
            UsertimeTableModel usertimeTableModel = new UsertimeTableModel();
            usertimeTableModel.WorkFlows = GetWorkFlowTypes();
            usertimeTableModel.Users = GetUsers();
            if (userId!=null)
            {
                usertimeTableModel.UserID = System.Convert.ToInt64(userId);
            }

            return View(usertimeTableModel);
        }
Exemplo n.º 2
0
        //List<UserProfileModel> list need to save workflow tasks for user
        public ActionResult AddUpdateUserTimeTable(UsertimeTableModel model)
        {
            model.InsertUserId =model.ModifyUserId = base.CurrentUserID;

            var apiMethod = "users/addUpdateUserTimeTableWithDetails";
            var response = BaseApiData.PutAPIData<UsertimeTableModel>(apiMethod, model);
            if (response.StatusCode == HttpStatusCode.OK)
                base.SetSuccessMessage(Pecuniaus.Resources.User.Messages.UserProfileUpdateSuccess);
            else
                base.SetSuccessMessage(Pecuniaus.Resources.User.Messages.UserProfileUpdateSuccess);
            return PartialView("_TasksListing", model);
        }