public ResponseModel AddComment(Comment objComment) { try { ActivityProvider objActivityProvider = new ActivityProvider(_context); objActivityProvider.AddComment(objComment); ResponseModel objResponseModel = new ResponseModel { StatusCode = 1, Message = "Successfull", }; return(objResponseModel); } catch (Exception ex) { ResponseModel objResponseModel = new ResponseModel { StatusCode = 0, Message = ex.Message, }; return(objResponseModel); } }