private ApiResponse Delete(int transactionId) { var apiResp = new ApiResponse { Type = ResponseType.Fail }; _transactionBusiness.OwnerId = GetUserId().Value; var resp = _transactionBusiness.Delete(transactionId); if (resp.Type != ResponseType.Success) { apiResp.ErrorCode = resp.ErrorCode; return(apiResp); } apiResp.Type = ResponseType.Success; return(apiResp); }
public void DeleteTransaction(int ID) { ts.Delete(ID); }