public string Post(int vkId, int donationId, string type) { string result = ResultHelper.Success(); if (vkId == 0) { return(ResultHelper.Error(ExceptionEnum.EmptyNonRequiredParameter, "vkId")); } if (donationId == 0) { return(ResultHelper.Error(ExceptionEnum.EmptyNonRequiredParameter, "donationId")); } DAL.Donation newDonation = DonationRepository.DeleteAndAddNewDonation(donationId); result = JsonConvert.SerializeObject(newDonation); return(result); }