ASP.Net MVC アプリケーションで jQuery ブートグリッドを実装しています。次のコードに問題があります。
var tResult = BootgridResponseData<List<Contact>>()
{
current = model.current,
rowCount = model.rowCount,
rows = contacts,
total = contacts.Count
};
これにより、次のエラーが表示されます。
呼び出し不可能なメンバー 'BootgridResponseData' は、メソッドのように使用できません。
私BootgridResponseData
のクラスは次のように定義されています。
public class BootgridResponseData<T> where T : class
{
public int current { get; set; } //? current page
public int rowCount { get; set; } //? rows per page
public IEnumerable<T> rows { get; set; } //? items
public int total { get; set; } //? total rows for whole query
}
ここで何が間違っているのでしょうか? 私はここで何をしているのか 100% 確信が持てません。