public HttpResponseMessage AddReviewType(AddNewReviewType request)
        {
            request.ipAddress = GetUser_IP();
            Result result = dal.AddReviewType(request);

            return(ApiTools.CreateResponse(result, Request));
        }
        internal Result AddReviewType(AddNewReviewType request)
        {
            try
            {
                context.ReviewTypes.InsertOnSubmit(new ReviewType()
                {
                    Accepted  = false,
                    DateAdded = DateTime.Now,
                    IpAddress = request.ipAddress,
                    Name      = request.name,
                    Abbr      = request.abbr
                });

                context.SubmitChanges();
                return(new Result(ResultStatus.SUCCESS, "Review type created"));
            }
            catch (Exception ex)
            {
                return(new Result(ResultStatus.ERROR, ex.Message));
            }
        }