public Task <int> SavePilgrimAsync(PilgrimDatabase Pilgrim) { if (Pilgrim.CampaignID != 0) { return(Pilgrimdatabase.UpdateAsync(Pilgrim)); } else { return(Pilgrimdatabase.InsertAsync(Pilgrim)); } }
public Task <int> DeletePilgrimAsync(PilgrimDatabase Pilgrim) { return(Pilgrimdatabase.DeleteAsync(Pilgrim)); }