public IHttpActionResult Post([FromBody] MLPPostParams mlpParams) { var mlp = new MissingLicensePlate() { PlateNumber = mlpParams.PlateNumber, SearchStartDateTime = mlpParams.SearchStartDateTime }; using (var ctx = DbContextFactory.BuildHucaresContext()) { ctx.MissingLicensePlates.Add(mlp); ctx.SaveChanges(); } return(Json(mlp)); }