public IEnumerable <Model.LogRowMismatch> Get(long importId, string exception, string row, int page, int size) { Model.ClfContext context = new Model.ClfContext(); Model.LogRowMismatch logRowMismatch = new Model.LogRowMismatch { ImportId = importId, ThrownException = exception, Row = row }; return(new Service.LogRowMismatchService(context).Filter(logRowMismatch, page, size)); }
public bool Post([FromBody] Model.LogRowMismatch entity) { Model.ClfContext context = new Model.ClfContext(); return(new Service.LogRowMismatchService(context).TryCorrect(entity)); }