Example #1
0
        protected ActionResult Update0(AdminUserEntityModel model)
        {
            //entity.UpdatedAt = DateTime.Now;
            var responseEdit = AdminUserBusinessLogic.Edit(model.ToEntity());

            return(Json(responseEdit));
        }
Example #2
0
        protected ActionResult Create0(AdminUserEntityModel model)
        {
            //entity.CreatedAt = DateTime.Now;
            var responseInsert = AdminUserBusinessLogic.Add(model.ToEntity());

            return(Json(responseInsert));
        }
Example #3
0
        public ActionResult Update(AdminUserEntityModel model)
        {
            model.Id = MainTokenData.UserId;
            var responseEdit = AdminUserBusinessLogic.EditOnly(model.ToEntity(),
                                                               x => x.Name,
                                                               x => x.Pass,
                                                               x => x.Language,
                                                               x => x.Theme
                                                               );

            return(Json(responseEdit));
        }
        protected ActionResult UpdateOnly0(AdminUserEntityModel model)
        {
            var responseEdit = AdminUserBusinessLogic.EditOnly(model.ToEntity(), x => x.No, x => x.Name, x => x.Email, x => x.Status, x => x.IsSuper);

            return(Json(responseEdit));
        }
Example #5
0
        public ActionResult Update(AdminUserEntityModel model)
        {
            var response = AdminUserBusinessLogic.Upsert(model.ToEntity());

            return(Json(response));
        }