public static async Task <TakeRateViewModel> GetModel(IDataContext context, TakeRateFilter filter, TakeRateDataItemAction action) { var model = await GetModel(context, filter); model.CurrentAction = action; if (action != TakeRateDataItemAction.NotSet) { model.IdentifierPrefix = Enum.GetName(action.GetType(), action); } return(model); }
public static async Task<FdpOxoVolumeViewModel> GetModel(IDataContext context, TakeRateFilter filter, TakeRateDataItemAction action) { var model = await GetModel(context, filter); model.CurrentAction = action; if (action != TakeRateDataItemAction.NotSet) { model.IdentifierPrefix = Enum.GetName(action.GetType(), action); } return model; }