public async Task Create(EOrderItem orderItem, int createdBy) { DynamicParameters parameter = new DynamicParameters(); parameter.Add("@OrderName", orderItem.OrderName); parameter.Add("@CreatedBy", createdBy); await Query(parameter, "[dbo].[OrderItemCreate]"); }
public async Task Update(EOrderItem orderItem, int updatedBy) { DynamicParameters parameter = new DynamicParameters(); parameter.Add("@OrderItemId", orderItem.OrderItemId); parameter.Add("@OrderName", orderItem.OrderName); parameter.Add("@UpdatedBy", updatedBy); await Query(parameter, "[dbo].[OrderItemUpdate]"); }
private OrderItem OrderItem(EOrderItem eOrderItem) { return(new OrderItem { CreatedDate = eOrderItem.CreatedDate, UpdatedDate = eOrderItem.UpdatedDate, CreatedBy = eOrderItem.CreatedBy, OrderItemId = eOrderItem.OrderItemId, UpdatedBy = eOrderItem.UpdatedBy, OrderName = eOrderItem.OrderName, }); }