예제 #1
0
 public Task Draw(int lastX, int lastY, int currentX, int currentY, string color, string tool, string lineWidth)
 {
     _drawService.AddDraw(new Draw {
         LastX = lastX, LastY = lastY, CurrentX = currentX, CurrentY = currentY, Color = color, Tool = tool, LineWidth = lineWidth
     });
     return(Clients.Others.SendAsync("draw", lastX, lastY, currentX, currentY, color, tool, lineWidth));
 }