Last active
October 12, 2018 12:08
-
-
Save vmandic/3038f925f637186bcdc34ee330f5ff4d to your computer and use it in GitHub Desktop.
meds-processor, Part 1/6, snippet #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Mvc; | |
namespace MedsProcessor.WebAPI.Controllers | |
{ | |
[ApiController, Route("~/")] | |
public class AppController : ControllerBase | |
{ | |
public ActionResult Index() | |
{ | |
var startTime = DateTime.Now; | |
// TODO: implement scraper and parser logic | |
var totalTime = startTime - DateTime.Now; | |
return Ok($"Done! Handler duration: {totalTime.Duration()}"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment