/// <summary>
        /// Create new customer comment
        /// </summary>
        /// <returns>The Customer comment details view</returns>
        public ActionResult CustomerCommentCreate()
        {
            try
            {
                MODEL.CustomerComment customerComment = new MODEL.CustomerComment();

                customerComment.OAcompanyList = Session.GetUserAssociatedCompanyList();
                return(PartialView("CustomerCommentDetails", customerComment));
            }
            catch (Exception e)
            {
                return(new HttpStatusCodeAndErrorResult(500, e.Message));
            }
        }
        /// <summary>
        /// Save the customer comment
        /// </summary>
        /// <param name="model">model object</param>
        /// <returns></returns>
        public ActionResult CustomerCommentSave(MODEL.CustomerComment model)
        {
            try
            {
                bool ismodelValid = ModelState.IsValid;
                if (!ismodelValid)
                {
                    ismodelValid = IsModelValidForMultilineTextbox("Comment", model.Comment, 220);

                    if (ismodelValid)
                    {
                        model.Comment = model.Comment.Replace("\r\n", "\n");
                    }
                }

                if (ismodelValid)
                {
                    //Get user id
                    int?userId = Session.GetUserId();
                    CustomerCommentService customerCommentService = new CustomerCommentService();
                    //CustomerCommentVO customerCommentVO = new CustomerCommentVO(model, userId);

                    CustomerCommentVO customerCommentVO = model.Transpose(userId);

                    customerCommentService.SaveCustomerComment(customerCommentVO);
                    return(new HttpStatusCodeResult(200));
                }
                else
                {
                    throw new ApplicationException(String.Format(Constants.CANNOT_SAVE, Constants.CUSTOMERCOMMENT));
                }
            }
            catch (ApplicationException e)
            {
                return(new HttpStatusCodeAndErrorResult(500, e.Message));
            }
        }