WIP
This commit is contained in:
parent
71576a4b1f
commit
73a1f11e99
21 changed files with 236 additions and 228 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using Insight.Database;
|
||||
|
||||
using PlanTempus.Core.Sql;
|
||||
|
||||
namespace PlanTempus.Components.Organizations.Create
|
||||
{
|
||||
public class CreateOrganizationHandler
|
||||
|
|
@ -19,11 +20,12 @@ namespace PlanTempus.Components.Organizations.Create
|
|||
var organizationId = Guid.NewGuid();
|
||||
var now = DateTime.UtcNow;
|
||||
|
||||
var sql = @"
|
||||
INSERT INTO Organizations (Id, Name, Description, CreatedById, CreatedAt, UpdatedAt)
|
||||
VALUES (@Id, @Name, @Description, @CreatedById, @CreatedAt, @UpdatedAt)";
|
||||
var sql = @"
|
||||
INSERT INTO organizations (id, name, description, created_by_id)
|
||||
VALUES (@Id, @Name, @Description, @CreatedById)";
|
||||
|
||||
await db.Connection.ExecuteSqlAsync(sql, new
|
||||
|
||||
await db.Connection.ExecuteSqlAsync(sql, new
|
||||
{
|
||||
Id = organizationId,
|
||||
command.Name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue