コード例 #1
0
        public async Task <ActionResult> Delete(long id)
        {
            var charityModel = new CharityModel {
                Id = id
            };
            await charityModel.Remove(_db, _queue);

            return(Ok());
        }
コード例 #2
0
        public async Task <ActionResult> Delete(long donorId, Guid charityIdentifier)
        {
            var charityModel = new CharityModel {
                DonorId = donorId, CharityIdentifier = charityIdentifier
            };
            await charityModel.Remove(_db);

            return(Ok());
        }