public JsonResult DeleteCustomerNote(string Id)
        {
            ICustomerNoteService dataService = new CustomerNoteService();
            object deleteResult = dataService.DeleteCustomerNote(customernoteContext, Id);

            return(Json(deleteResult, JsonRequestBehavior.AllowGet));    // deleteResult: {Successful = value, Message = vlue}
        }
        //*******************************************************************************
        //                              CustomerNote Methods
        //*******************************************************************************
        public JsonResult AddCustomerNote(string data)
        {
            ICustomerNoteService dataService = new CustomerNoteService();
            var addResult = dataService.AddCustomerNote(customernoteContext, data);

            return(Json(addResult, JsonRequestBehavior.AllowGet));
        }
 public void Init()
 {
     _repositoryMock = new Mock <IRepository <CustomerNote> >();
     _mediatorMock   = new Mock <IMediator>();
     _noteService    = new CustomerNoteService(_repositoryMock.Object, _mediatorMock.Object);
 }