public static TransferState Create(TransferStatesEnum enumItem) { return(new TransferState { StateName = enumItem.ToString() }); }
public bool IsEqual(TransferStatesEnum enumItem) { return(this.StateName == enumItem.ToString()); }
private async Task <TransferState> FindTransferStateByName(TransferStatesEnum enumItem) { return(await context.TransferStates.FirstOrDefaultAsync(t => t.IsEqual(enumItem))); }