/// <summary> /// /// </summary> /// <param name="instance"></param> /// <returns></returns> public async Task<bool> CreateDrawingAsync(Drawing instance) { db.Drawings.Add(instance); return await db.SaveChangesAsync() > 0; }
protected override void Initialize(RequestContext requestContext) { base.Initialize(requestContext); CurrentDrawing = repository.GetLastDrawing(); }