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); }
public ActionResult UserLoginFailedLogIndex(UserLoginFailedLogIndexModel model) { return Template(model.CreateTemplate(ControllerContext)); }