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