예제 #1
0
        public async Task<ActionResult> DeleteUserLoginFailedLogIndex(UserLoginFailedLogIndexModel model, long[] ids)
        {
            foreach (var item in MaintDbContext.UserLoginFailedLogs.Where(x => ids.Contains(x.UserLoginFailedLogId)).ToList())
            {
                MaintDbContext.UserLoginFailedLogs.Remove(item);
            }
            await MaintDbContext.SaveChangesAsync();
            await SetFlashAsync(new FlashMessage
            {
                Text = MaintCultureTextResources.SuccessToSave,
                MessageType = FlashMessageType.Success,
            });

            return UserLoginFailedLogIndex(model);
        }
예제 #2
0
 public ActionResult UserLoginFailedLogIndex(UserLoginFailedLogIndexModel model)
 {
     return Template(model.CreateTemplate(ControllerContext));
 }