所以我有一個通用的基礎控制器實現CRUD,它來自APIController。 public class GenericController<TEntity> : ApiController where TEntity : class {
private readonly GenericModel<TEntity> _model;
public IModel Model {
我使用的Web API,並有麻煩映射路線 建立一個API,Twitter的像網站我有用戶控制器執行以下操作: public User Get(string firstname, string lastname)
public User Get(Guid id)
public User Friends(Guid id)
public User Followers(Guid id)
publi
我試圖使用NG文件上傳文件上傳和保存BLOB數據庫爲我剛纔的問題Ng-File-Upload to Save PDF Blob to Database 我相信,我有「正確的「代碼來完成任務,但現在的問題是,我無法讓代碼在ApiController中」打「該方法。如果我把這個方法放在一個常規的異步控制器中,它會發現它(但是我不能使用一半所需的代碼,因爲它不起作用,除非它在從ApiController