/// <summary> /// Creates the menu. /// </summary> /// <returns>The menu.</returns> /// <param name="tenantId">Tenant identifier.</param> /// <param name="operatorId">Operator identifier.</param> /// <param name="menu">Menu.</param> public int CreateMenu(int tenantId, int operatorId, Menu menu) { menu.CreatedBy = operatorId; menu.CreatedTime = DateTime.Now; menu.UpdatedBy = operatorId; menu.UpdatedTime = DateTime.Now; var entity = menu.ToDataObject(); return(_menuDao.CreateMenu(tenantId, operatorId, entity)); }