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