public async Task <bool> EditAsync(dynamic model) { if (model == null) { return(false); } var entity = model.MapTo <AdminInfo>(); return(adminManage.EditTo(entity) ? await context.SaveChangesAsync() > 0 : false); }