public virtual async Task <IHttpActionResult> Put([FromBody] E entity, [FromUri] int id)
        {
            AuditorService.Audit(entity, Request);
            var updatedEntity = service.Update(entity, id);

            return(await Task.FromResult(Ok <E>(updatedEntity)));
        }
        public virtual async Task <IHttpActionResult> Post([FromBody] E entity)
        {
            AuditorService.Audit(entity, Request);
            var postedEntity = service.Add(entity);

            return(await Task.FromResult(Ok <E>(postedEntity)));
        }