Ejemplo n.º 1
0
 public ActionResult Update(UpdateModuleInput input)
 {
     input.LastModifyTime   = DateTime.Now;
     input.LastModifyUserId = this.CurrentSession.UserId;
     this.CreateService <IModuleAppService>().Update(input);
     return(this.UpdateSuccessMsg());
 }
Ejemplo n.º 2
0
        public void UpdateModule(UpdateModuleInput input)
        {
            input.Validate();
            var entity = _accountRepository.GetById <Sys_Module>(input.Id);

            AceMapper.Map(input, entity);
            _accountRepository.Update(entity);
        }
Ejemplo n.º 3
0
        public void Update(UpdateModuleInput input)
        {
            input.Validate();

            var now = DateTime.Now;

            this.DbContext.Update <Sys_Module>(a => a.Id == input.Id, a => new Sys_Module()
            {
                ParentId    = input.ParentId,
                Name        = input.Name,
                Icon        = input.Icon,
                UrlAddress  = input.UrlAddress,
                OpenTarget  = input.OpenTarget,
                IsMenu      = input.IsMenu,
                IsExpand    = input.IsExpand,
                IsPublic    = input.IsPublic,
                SortCode    = input.SortCode,
                Description = input.Description,
                IsEnabled   = input.IsEnabled,

                LastModifyTime   = now,
                LastModifyUserId = this.Session.UserId,
            });
        }
Ejemplo n.º 4
0
 public ActionResult Update(UpdateModuleInput input)
 {
     this.CreateService <IModuleAppService>().Update(input);
     return(this.UpdateSuccessMsg());
 }
Ejemplo n.º 5
0
 public IActionResult Update(int id, [FromBody] UpdateModuleInput module)
 {
     module.Id = id;
     _moduleService.Update(module);
     return(Created("", new { module.Id }));
 }
Ejemplo n.º 6
0
 public void Update(UpdateModuleInput input)
 {
     input.Validate();
     this.DbContext.UpdateFromDto <Sys_Module, UpdateModuleInput>(input);
 }