Skip to content

Instantly share code, notes, and snippets.

@vmandic
Last active October 12, 2018 12:08
Show Gist options
  • Save vmandic/3038f925f637186bcdc34ee330f5ff4d to your computer and use it in GitHub Desktop.
Save vmandic/3038f925f637186bcdc34ee330f5ff4d to your computer and use it in GitHub Desktop.
meds-processor, Part 1/6, snippet #1
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