public static async Task DeleteAsync(ObjectDTO objectToDelete) { await TypeToServiceDictionary[objectToDelete.GetType()].DeleteAsync(objectToDelete.Id); }
public static async Task <object> UpdateAsync(ObjectDTO objectToUpdate) { return(await TypeToServiceDictionary[objectToUpdate.GetType()].UpdateAsync(objectToUpdate)); }
public static async Task <object> AddAsync(ObjectDTO objectToAdd) { return(await TypeToServiceDictionary[objectToAdd.GetType()].AddAsync(objectToAdd)); }