Ejemplo n.º 1
0
        private ListRolePermissionDTO TODTO(RoleEntity entity)
        {
            ListRolePermissionDTO dto = new ListRolePermissionDTO();

            dto.CreateTime  = entity.CreateTime;
            dto.Description = entity.Description;
            dto.Id          = entity.Id;
            dto.Name        = entity.Name;
            return(dto);
        }
        public async Task <IActionResult> Edit(long id)
        {
            ListRolePermissionDTO model = await PerSvc.GetByIdAsync(id);

            if (model == null)
            {
                return(NotFound());
            }
            return(View(model));
        }