public void CreateExceptionDetail(ExceptionDetailTransport model)
        {
            var exceptionDetail = Mapper.Map <ExceptionDetailTransport, ExceptionDetail>(model);

            database.ExceptionDetails.Create(exceptionDetail);
            database.Save();
        }
        public void UpdateExceptionDetail(ExceptionDetailTransport model)
        {
            var exceptionDetail = database.ExceptionDetails.Get(model.Id);

            exceptionDetail.ExceptionMessage = model.ExceptionMessage;
            exceptionDetail.ControllerName   = model.ControllerName;
            exceptionDetail.Date             = model.Date;

            database.ExceptionDetails.Update(exceptionDetail);
            database.Save();
        }