Beispiel #1
0
        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);
        }
Beispiel #2
0
 public void DeleteTransaction(int ID)
 {
     ts.Delete(ID);
 }