niisar
4/30/2016 - 7:09 PM

PeopleController

PeopleController

using FluentAutofacValidationAPI.Infrastructure;
using FluentAutofacValidationAPI.Models;
using System.Web.Http;

namespace FluentAutofacValidationAPI.Controllers
{
    [RoutePrefix("api/people")]
    public class PeopleController : ApiController
    {
        [HttpPost]
        [Route("create")]
        [ValidateFilter]
        public IHttpActionResult CreatePerson(Person person)
        {
            return Ok("ok");
        }
    }
}